import request from '@/utils/request'
export default {
  //1.课程条件查询带分页
  getCourseList(page, limit, searchObj) {
    return request({
      url: `/serviceEdu/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  //2.查询所有一级二级分类
  getAllSubject() {
    return request({
      url: `/serviceEdu/subject/getAllSubject`,
      method: 'get'
    })
  },
  //3.查询课程详情
getCourseInfo(id){
    return request({
        url: `/serviceEdu/coursefront/getFrontCourseInfo/${id}`,
        method: 'get'
      })
}
}
